Fixes for foscam