this should fix the handling of corner cases Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36543